﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchSpecialDelStorage.aspx.cs" Inherits="DelStorage_SearchSpecialDelStorage" %>

<%@ Register Src="../Storage/Position.ascx" TagName="Position" TagPrefix="uc1" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .find td {
            border-bottom: 1px solid #b5d6e6;
            border-right: 1px solid #b5d6e6;
            border-left: 1px solid #b5d6e6;
        }
    </style>
    <script type="text/javascript">
        function fDlg(URL, Target, form)  //
        {
            showx = event.screenX - event.offsetX - 4; // + deltaX;
            showy = event.screenY - event.offsetY + 18; // + deltaY;
            retval = window.showModalDialog(URL, "", "dialogWidth:800px; dialogHeight:400px;  status:no; directories:yes;help:no;scrollbars:no;Resizable=no; ");

            if (retval != null) {

                var CompanyName = retval.split(",");
                document.form1.txtMat_Code.value = CompanyName[1];         //物料编号
                document.form1.txtMat_Name.value = CompanyName[0];           //物料名称
            }
        }

        function SelectAllCheckBox() {
            var form = document.forms[0];
            for (i = 0; i < form.elements.length; i++) {
                if (form.elements[i].checked == false) {
                    j = 0;
                }
                else {
                    j = 1;
                }
            } if (j == 0) {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = true;
                }
            }
            else {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = false;
                }
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <input id="Hidden1" type="hidden" runat="server" />
        <div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="height: 30px">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="background-image: url(../images/tab_03.gif); background-repeat: repeat-x; width: 12px;">&nbsp;
                                </td>
                                <td style="background-image: url(../images/tab_05.gif); background-repeat: repeat-x; height: 30px;">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="width: 46%; vertical-align: middle;">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td style="width: 5%; vertical-align: middle;">
                                                            <img src="../images/tb.gif" width="16" height="16" />
                                                        </td>
                                                        <td style="width: 95%;">
                                                            <span>你当前的位置</span>：业务管理-特殊物料出库
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td width="54%"></td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="16" style="background-image: url(../images/tab_07.gif); height: 30px;">&nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                            <tr>
                                <td style="background-image: url(../images/tab_12.gif); width: 8px;">&nbsp;
                                </td>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                        <tr>
                                            <td style="padding-left: 5px;">
                                                <table width="100%" cellspacing="0" style="border: 1px solid #b5d6e6; border-collapse: collapse;" >
                                                    <tr style="height: 22px;border: 1px solid #b5d6e6;" >
                                                        <td align="right">物料名称：
                                                        </td>
                                                        <td style="padding-left: 2px;">
                                                            <asp:TextBox ID="txtMat_Name" runat="server" Style="border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox>
                                                            <input onclick="fDlg('../Stock/BookList.aspx', 'Item', form1); return false;" src="../images/fc.gif"
                                                                style="border-right: 0px; border-top: 0px; border-left: 0px; width: 14px; border-bottom: 0px; height: 11px"
                                                                type="image" />
                                                        </td>
                                                        <td  align="right">物料编码：
                                                        </td>
                                                        <td style="padding-left: 2px;">
                                                            <asp:TextBox ID="txtMat_Code" runat="server" Style="width: 200px; height: 14px; border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="Label2" runat="server" Text="选择终点设备："></asp:Label>
                                                        </td>
                                                        <td style="padding-left: 2px;">
                                                            <asp:DropDownList ID="ddlSQIDE" runat="server">
                                                                <asp:ListItem Selected="True" Value="0">自动获取</asp:ListItem>
                                                                <%--<asp:ListItem Selected="True" Value="0">自动获取出口</asp:ListItem>--%>
                                                                <%--<asp:ListItem Value="1013">1#输送机口（1013）</asp:ListItem>
                                                            <asp:ListItem Value="1084">2#输送机口（1084）</asp:ListItem>--%>
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td colspan="2" align="center" style="padding-right: 20px; padding-top: 2px;">
                                                            <font color="#ff0000"><b>
                                                            <asp:Label ID="Label1" runat="server"></asp:Label></b></font>
                                                            <asp:ImageButton ID="ibnSearch" runat="server" ImageUrl="~/Images/btn/btn_Search.gif"
                                                                OnClick="ibnSearch_Click" />
                                                            <asp:ImageButton ID="ibtnJoinCommand" runat="server" ImageUrl="~/Images/btn/btn_JoinCommand.gif"
                                                                OnClick="ibtnJoinCommand_Click" />
                                                            <asp:ImageButton ID="ibtn_Excel" ImageUrl="../images/btn/btn_Excel.gif" Width="65"
                                                                runat="server" OnClick="ibtn_Excel_Click" Visible="False" />

                                                            <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                Width="63" OnClick="btnReset_Click" />
                                                        </td>
                                                    </tr>


                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="padding: 2px;">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center">
                                                            <table cellpadding="0" cellspacing="0" border="0" width="99%">
                                                                <tr>
                                                                    <td>
                                                                        <div style="margin-left: 0px; margin-top: 3px; width: 100%; height: 595px; overflow: auto; overflow-x: auto; overflow-y: auto;">
                                                                            <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Width="100%" BorderWidth="1px"
                                                                                BorderColor="#B5D6E6" CellPadding="2" AllowPaging="True" PageSize="100" OnPageIndexChanging="gv_PageIndexChanging"
                                                                                OnRowDataBound="gv_RowDataBound" DataKeyNames="PID">
                                                                                <Columns>
                                                                                    <asp:TemplateField>
                                                                                        <HeaderTemplate>
                                                                                            <input id="hchkSelect" type="checkbox" onclick="SelectAllCheckBox()" />
                                                                                        </HeaderTemplate>
                                                                                        <ItemTemplate>
                                                                                            <asp:CheckBox ID="chkSelect" runat="server" />
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle Width="5%" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="序号">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="LabNumber" runat="server" Text="<%#Container.DataItemIndex+1%>"></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle Width="5%" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="Pos_ID" HeaderText="货位号">
                                                                                        <ItemStyle Width="10%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Tray_ID" HeaderText="托盘号">
                                                                                        <ItemStyle Width="10%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Mat_Name" HeaderText="物料名称">
                                                                                        <ItemStyle Width="50%" />
                                                                                    </asp:BoundField>
                                                                                </Columns>
                                                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                                                                                <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                                                                                <PagerSettings Mode="Numeric"></PagerSettings>
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="background-image: url(../images/tab_15.gif); width: 8px;">&nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="background-image: url(../images/tab_19.gif); height: 35px;">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="width: 12px; height: 35px;">
                                    <img src="../images/tab_18.gif" width="12" height="35" />
                                </td>
                                <td>&nbsp;
                                </td>
                                <td width="16">
                                    <img src="../images/tab_20.gif" width="16" height="35" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
